package edu.nju;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.*;

/**
 * format : dir/subdir/.../
 */
public class DirEntry extends Entry{
    public DirEntry(String classpath) {
        super(classpath);
    }

    @Override
    public byte[] readClassFile(String className) throws IOException {
    	String temp=this.classpath+File.separator+className;
    	try {
    	FileInputStream inputStream = new FileInputStream(temp);
        return IOUtil.readFileByBytes(inputStream);}
    	catch(IOException e) {
    		return null;
    	}
    }
}
